﻿import request from '@/utils/request';
// list
export const dianyingfenleiList = (params) => {
    return request({
        url: '/dianyingfenlei/page',
        method: 'post',
        data: params,
    })
};
export const dianyingfenleiDetail = (id) => {
    return request({
        url: '/dianyingfenlei/'+id,
        method: 'get',
    })
};
// add
export const dianyingfenleiSave = (params) => {
    return request({
        url: '/dianyingfenlei',
        method: 'post',
        data: params,
    })
};
// updt
export const dianyingfenleiEdit = (params) => {
    return request({
        url: '/dianyingfenlei',
        method: 'put',
        data: params,
    })
};
// delete
export const dianyingfenleiDelete = (id) => {
    return request({
        url: '/dianyingfenlei/'+id,
        method: 'delete',
    })
};
// pldel
export const dianyingfenleiDeleteList = (dianyingfenleis) => {
    return request({
        url: '/dianyingfenlei/deleteList',
        data:{list:dianyingfenleis},
        method: 'post',
    })
};
// all
export const dianyingfenleiAllList = () => {
    return request({
        url: '/dianyingfenlei',
        method: 'get',
    })
};

